package com.yml.mall.order.pojo;

import com.yml.mall.vo.OrderItemVO;
import com.yml.mall.vo.ShippingVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @ClassName OrderVO
 * @Author Administrator
 * @Date 2020/4/15   17:14
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
public class OrderVO {
    @ApiModelProperty("订单号")
    private Long orderNo;
    @ApiModelProperty("地址ID")
    private Integer shippingId;
    @ApiModelProperty("支付金额")
    private BigDecimal payment;
    @ApiModelProperty("支付方式")
    private Integer paymentType;
    @ApiModelProperty("运费")
    private Integer postage;
    @ApiModelProperty("支付状态")
    private Integer status;
    @ApiModelProperty("支付时间")
    private Date paymentTime;
    @ApiModelProperty("发货时间")
    private Date sendTime;
    @ApiModelProperty("交易完成时间")
    private Date endTime;
    @ApiModelProperty("交易关闭时间")
    private Date closeTime;
    @ApiModelProperty("订单项")
    List<OrderItemVO> orderItemVoList;
    @ApiModelProperty("订单地址")
    ShippingVO shippingVo;
    @ApiModelProperty("创建时间")
    Date createTime;
    public OrderVO(Long orderNo, Integer shippingId, BigDecimal payment, Integer paymentType, Integer postage, Integer status, Date createTime) {
        this.orderNo = orderNo;
        this.shippingId = shippingId;
        this.payment = payment;
        this.paymentType = paymentType;
        this.postage = postage;
        this.status = status;
        this.createTime = createTime;
    }
}
